<%@page import="com.itwill.ecom.ordersDetail.OrdersDetailBeans"%>
<%@page import="com.itwill.ecom.ordersDetail.OrdersDetailServiceImpl"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<%
	WebApplicationContext webContext = 
					WebApplicationContextUtils.getWebApplicationContext(application);

	OrdersDetailServiceImpl detailService = 
					(OrdersDetailServiceImpl)webContext.getBean("ordersDetailService");
	
	OrdersDetailBeans detail1 = new OrdersDetailBeans(1, 1, 4, 1);
	OrdersDetailBeans detail2 = new OrdersDetailBeans(2, 1, 7, 2);
	OrdersDetailBeans detail3 = new OrdersDetailBeans(3, 2, 1, 3);
	OrdersDetailBeans detail4 = new OrdersDetailBeans(4, 3, 3, 4);
	OrdersDetailBeans detail5 = new OrdersDetailBeans(5, 3, 2, 5);
	OrdersDetailBeans detail6 = new OrdersDetailBeans(6, 2, 6, 6);
	
	detailService.createOrdersDetail(detail1);
	detailService.createOrdersDetail(detail2);
	detailService.createOrdersDetail(detail3);
	detailService.createOrdersDetail(detail4);
	detailService.createOrdersDetail(detail5);
	detailService.createOrdersDetail(detail6);
%> 